#include "Point.h"

Point::Point(float x, float y) :
x(x),
y(y)
{
}

Point::~Point(void)
{
}

Point Point::operator+( const Point& a_p )
{
  Point ret(x+a_p.x,y+a_p.y);
  return ret;
}

Point Point::operator-( const Point& a_p )
{
  Point ret(x-a_p.x,y-a_p.y);
  return ret;
}

bool Point::operator==( const Point& a_p )
{
  return (x == a_p.x && y == a_p.y);
}

Point Point::operator*( const float& scalar)
{
  Point ret(0,0);
  ret.x = scalar * x; ret.y = scalar * y;
  return ret;
}
